// angular.module('fs.waf').run([
//   '$templateCache',
//   function($templateCache) {
//     var modalDemoTemplate = require('../htmlTemplate/modalDemo.html');
//     $templateCache.put('fs/template/modalDemo.html', modalDemoTemplate);

//     $templateCache.put('myModalContent.html', require('../htmlTemplate/myModalContent.html'));
//   }
// ]);

angular.module('fs.waf').config(modalConfig);

modalConfig.$inject = ['modalServiceProvider', 'routerServiceProvider'];

function modalConfig(modalServiceProvider, routerServiceProvider) {
  modalServiceProvider.setDialogsModule('modalDemo', {
    title: 'modalDemo',
    pageId: 'modalDemo',
    size: [1200, 500],
    templateUrl: 'resources/default/lookup/modalDemo.html',
    controller: 'modalDemoCtrl',
    controllerAs: 'vm',
    dependentFiles: ['resources/default/lookup/modalDemoCtrl.js'],
    layoutConfig: 'js/null.json',
    i18nConfig: 'js/null.json',
    authorizationConfig: 'js/null.json',
    validatorConfig: 'js/null.json'
  });
  modalServiceProvider.setDialogsModule('modalDemo2', {
    title: 'modalDemo2',
    pageId: 'modalDemo2',
    size: [1200, 500],
    templateUrl: 'resources/default/lookupMultiple/modalDemo2.html',
    controller: 'modalDemoCtrl2',
    controllerAs: 'vm',
    dependentFiles: ['resources/default/lookupMultiple/modalDemoCtrl2.js'],
    layoutConfig: 'js/null.json',
    i18nConfig: 'js/null.json',
    authorizationConfig: 'js/null.json',
    validatorConfig: 'js/null.json'
  });
}
